using UnityEngine;

class SpiderCtrl: MonoBehaviour
{
    public int count;
    // public bool 高消耗逻辑 = false;

    public static SpiderCtrl Instance;

    private void Awake()
    {
        Instance = this;
    }

    private void OnEnable()
    {
        string fullPath = "Assets/Dots/Spider.prefab";
        GameObject prefab = UnityEditor.AssetDatabase.LoadAssetAtPath<GameObject>(fullPath);

        for (int i = 0; i < count; i++)
        {
            GameObject go = GameObject.Instantiate<GameObject>(prefab);
        }
    }

    // public bool IsHightCost()
    // {
    //     return 高消耗逻辑;
    // }
}


